#include "CPlayerRegisterRet.h"


//-------------------------------------------------------------------------------
CPlayerRegisterRet::CPlayerRegisterRet(uint32_t uid, uint32_t pn)
	: BaseMessage(uid, pn)
{
	_safe_guard_begin;

	_safe_guard_end;
}

//-------------------------------------------------------------------------------
CPlayerRegisterRet::~CPlayerRegisterRet(void)
{
}

void CPlayerRegisterRet::SetJsonData(const char* key, uint32_t val)
{
	_safe_guard_begin;

	m_jv[key] = val;

	_safe_guard_end;
}

void CPlayerRegisterRet::SetJsonData(const char* key, int32_t val)
{
	_safe_guard_begin;

	m_jv[key] = val;

	_safe_guard_end;
}

void CPlayerRegisterRet::SetJsonData(const char* key, uint16_t val)
{
	_safe_guard_begin;

	m_jv[key] = val;

	_safe_guard_end;
}

void  CPlayerRegisterRet::SetJsonData(const char* key, int16_t val)
{
	_safe_guard_begin;

	m_jv[key] = val;

	_safe_guard_end;
}

void CPlayerRegisterRet::SetJsonData(const char* key, std::string val)
{
	_safe_guard_begin;

	m_jv[key] = val;

	_safe_guard_end;
}

void CPlayerRegisterRet::SetJsonData(const char* key, double val)
{
	_safe_guard_begin;

	m_jv[key] = val;

	_safe_guard_end;
}

void CPlayerRegisterRet::Clear()
{
	_safe_guard_begin;

	m_jv.clear();

	_safe_guard_end;
}
